import './product.css'
import {getData,getDelayedData} from 'api/getData'
import render from './items.art'
//接口 https://www.imooc.com/api/mall-wepApp/index/product?icode=J6DDC8E3E7A8BF54C
getData('https://www.imooc.com/api/mall-wepApp/index/product?icode=J6DDC8E3E7A8BF54C').then
(data=>{
    document.getElementById('product-list').innerHTML=render({
        items:data
    })
})